<?php 
echo $this->doctype();

$session = new Zend_Session_Namespace(Admin_SecureController::$_NS);
$front = Zend_Controller_Front::getInstance();        
?>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<?php echo $this->baseUrl('assets/kickstart/css/kickstart.css'); ?>" media="all" />
<link rel="stylesheet" href="<?php echo $this->baseUrl('assets/admin.css'); ?>" media="all" />

<script type="text/javascript" src="<?php echo $this->baseUrl('assets/jquery-1.9.1.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('assets/jquery-validate.js'); ?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl('assets/kickstart/js/kickstart.js'); ?>"></script>    
<script type="text/javascript" src="<?php echo $this->baseUrl('assets/app.js'); ?>"></script>
<script type="text/javascript"> 
    $(document).ready(function(){
        $('button#search-btn').click(function(e) {
            e.preventDefault();
            e.stopPropagation();
        });
        
        $('.res_meta')
                .find('input[type=text]').attr("disabled", "disabled");
        
        var _text = $('#meta-btn').text();
        $('#meta-btn').click(function() {
            var status = $('.res_meta').toggle();
            
            if (status.is(':visible')) {
                status.find('input[type=text]').removeAttr("disabled")
                $(this).text('Hide Meta');
                
                $('#metaflag').val(true);
            } 
            else {
                status.find('input[type=text]').attr("disabled", "disabled");                               
                $(this).text(_text);
                
                $('#metaflag').val(false);
            } 
            $(document).scrollTop($(document).height()); 
            
            return false;
        });                
    });
</script>
<div class="container clearfix">
    <div id="header">
        <?php echo $this->NavigationMenu('top', $session->user->level); ?>
    </div>
    <div id="bcrumbs">
    </div>
    <input id="url" type="hidden" value="<?php echo $front->getRequest()->getModuleName(), '/', $front->getRequest()->getParam('controller'); ?>"/>
    <div class="my-overlay" style="display: none;"></div>
    
    <?php echo $this->layout()->content; ?>
    
    <br/><br/><br/>
</div>